include_directories(../../inc ../../open-vip/include ../../dut ../../open-vip/xcomm/include
										../../dut/UTCache ../../dut/UTAXI4RAM)

list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../cmake)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)

if(RUN STREQUAL "tb_ovip_xdata")
	include(verilator)
	add_executable(tb_ovip_xdata tb_ovip_xdata.cpp)
	target_link_libraries(tb_ovip_xdata ovip xspcomm)
endif()

function(add_target name)
	if(RUN STREQUAL ${name})
		include(${name})
	endif()
endfunction()

add_target(tb_nutshell_cache)
add_target(tb_nutshell_cache_coroutine)
add_target(tb_coupledl2_cache)
add_target(tb_coupledl2_cache_coroutine)
add_target(tb_nutshell_axi4ram)
add_target(tb_nutshell_axi4ram_async)
add_target(tb_nutshell_soc)
add_target(tb_nutshell_msg_soc)

# include(../cmake/mvm.cmake)
